<template>
  <vue-modal
    title="配置广告"
    ok-text="提交"
    cancel-text="取消"
    :show.sync="showModal"
    effect="fade"
    :small="true"
    :width="500"
    :callback="submit">
    <div slot="modal-body" class="modal-body">
      <form class="form-horizontal" role="form">
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*组合ID</label>
          <div class="col-sm-9 text-left">
            <input type="text" class="form-control" v-model="ad.betaId">
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*组合标题</label>
          <div class="col-sm-9 text-left">
            <input type="text" class="form-control" v-model="ad.betaName">
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*组合描述</label>
          <div class="col-sm-9 text-left">
            <input type="text" class="form-control" v-model="ad.betaDesc">
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*配图</label>
          <div class="col-sm-9 text-left">
            <div class="pic-url" v-if=" actionType === 'UPDATE' ">
              原图：<br>
              <img :src="ad.betaPicUrl">
            </div>
            <input type="file" class="form-control" accept="image/jpeg,image/png" v-el:file>
          </div>
        </div>
        <div class="form-group form-group-sm">
          <label class="col-sm-3 control-label">*组合类型</label>
          <div class="col-sm-9 text-left">
            <select class="form-control" v-model="ad.betaType">
              <option value="0">普通组合</option>
              <option value="1">迷你组合</option>
            </select>
          </div>
        </div>
      </form>
    </div>
  </vue-modal>
</template>
<style src="./config.css" scoped></style>
<script src="./config.js"></script>